<?
	$data['username'] = $_POST['username'];
	$data['password'] = $_POST['password'];
	$data['name'] = $_POST['name'];
	$data['level_name'] = $_POST['level_name'];
	$data['level'] = $dsfm_user->get_level($_POST['level_name']);
	$data['tel'] = $_POST['tel'];
	$data['email'] = $_POST['email'];
	$data['add_date'] = now();

	$dsfm_user->register($data);

	redirect("admin.php");
?>